package com.study.service.impl;

import com.study.bean.query.BuildingQuery;
import com.study.dao.impl.BuilDaoImpl;
import com.study.service.BuildingService;
import com.study.util.PageInfo;

import java.util.List;

public class BuildingServiceImpl implements BuildingService {
    private BuilDao builDao = new BuilDaoImpl();
    @Override
    public PageInfo selectByPage(BuildingQuery buildingQuery) {
        List<BuildingQuery> list = builDao.selecByPage(buildingQuery);
        PageInfo pageInfo = new PageInfo(0, list);
        return pageInfo;
    }
}
